package state_pattern.concrete_state;

import state_pattern.context.Context;
import state_pattern.state.LiftState;

public class OpeningState extends LiftState {

    @Override
    public void open() {
        System.out.println("电梯开门");
    }

    @Override
    public void close() {
        super.context.setLiftState(Context.CLOSING_STATE);
        super.context.close();
    }

    @Override
    public void run() {

    }

    @Override
    public void stop() {

    }
}
